package com.dhcc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dhcc.entity.SysUserDepartmentInstitution;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserDepartmentInstitutionMapper extends BaseMapper<SysUserDepartmentInstitution> {
    List<String> getPosition(String institutionId, String userId);

    List<String> getPositionIds(String institutionId, String departmentId, String userId,String institutionRoleId);

    Integer updateUserPositionByUserId(String userId, String positionId);

    List<String> getdepartment(String institutionId, String userId, String institutionRoleId);

    SysUserDepartmentInstitution getDepartmentIdAndPositionId(String userId, String institutionId, String institutionRoleId);

    String selectAdminId(String institutionId, String institutionRoleId);

    Integer addDate(String userId, String institutionId, String departmentId, String positionId);

    List<String> selectPositionList(String institutionId, String institutionRoleId);

    Integer insertPositionInforment(String institutionId, String institutionRoleId, String departmentId, String positionId);

    Integer deleteData(String institutionId, String institutionRoleId, String departmentId, String positionId);

    Integer deleteInstitutionData(String institutionId);

    Integer addInstitutionData(String userId, String institutionId, String departmentId, String positionId, String institutionRoleId);
}
